package raochang.pojo.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 图书数据
 * </p>
 *
 * @author itheima
 */
@Getter
@Setter
@TableName("books")
public class Books implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 图书条形码
     */
    @TableField("barcode")
    private String barcode;
    /**
     * 图书状态:0=在库,1=借出
     */
    @TableField("state")
    private String state;
    /**
     * 还书时间
     */
    @TableField("return_time")
    private LocalDateTime returnTime;

    /**
     * 借书时间
     */
    @TableField("save_time")
    private LocalDateTime saveTime;

}
